package com.hunan.api.catv.service.impl.member.assets;

import com.hunan.api.catv.dao.BaseDao;
import com.hunan.api.catv.dao.member.MemberAssetsDetailMapper;
import com.hunan.api.catv.entity.po.MemberAssetsDetail;
import com.hunan.api.catv.entity.po.MemberAssetsDetailVo;
import com.hunan.api.catv.service.impl.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @author jiang zhuan
 * @version 1.0
 * @description 描述
 * @date 2020/12/22 0022
 * @package com.hunan.api.catv.service.impl.member.assets
 * @company 湖南有线
 */
@Service
public class MemberAssetsDetailSerivce extends CommonService<MemberAssetsDetail, MemberAssetsDetailVo, Integer> {

    @Autowired
    private MemberAssetsDetailMapper memberAssetsDetailMapper;

    @Override
    public BaseDao<MemberAssetsDetail, MemberAssetsDetailVo, Integer> getBaseDao() {
        return memberAssetsDetailMapper;
    }

    public BigDecimal getAmountAlreadyInvite() {
        return memberAssetsDetailMapper.getAmountAlreadyInvite();
    }
}
